﻿using System.Collections.Generic;

namespace Marmat.Forms
{
    public class TopicBarPageCollection : List<TopicBarPage>
    {

        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public TopicBarPageCollection(TopicBar TopicBar)
        {
            this._TopicBar = TopicBar;
        }
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        private TopicBar _TopicBar;
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
        /* TODO ERROR: Skipped RegionDirectiveTrivia */
        public new TopicBarPage Add(TopicBarPage Item)
        {
            Item._TopicBar = this._TopicBar;
            base.Add(Item);
            return Item;
        }

        public new TopicBarPage this[string Name]
        {
            get
            {
                foreach (TopicBarPage ct in this)
                {
                    if ((ct.Name ?? "") == (Name ?? ""))
                    {
                        return ct;
                    }
                }

                return null;
            }
        }
        /* TODO ERROR: Skipped EndRegionDirectiveTrivia */
    }
}